/**
 * Author atguigu
 * Date 2020/10/19 16:44
 */
object NameValue {
    def main(args: Array[String]): Unit = {
        /*def f = {
            println("f....")
            7
        }
        
        foo(f)*/
        foo{
            println("xxxxxx")
            1
        }
    }
    
    
    def foo(i: => Unit) = {
        i
        i
        i
    }
}
/*
值调用:


名调用:

 */